package com.jiayuge.server.config.myBatisPuls;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 功能: Mybatis分页配置
 *
 * @Program: yeb
 * @Date: 2021-11-25 18:39
 * @Author Jiayu.Yang
 */
@Configuration
public class MyBatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
